package org.example.fancystudy.interrupt;

/**
 * @author chaigq
 * @version 1.0
 * @date 2022/11/10 22:53
 */
public class InterruptDemo5 {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName() + ":" + Thread.interrupted());
        System.out.println(Thread.currentThread().getName() + ":" + Thread.interrupted());

        System.out.println("---------------");
        Thread.currentThread().interrupt();

        System.out.println(Thread.currentThread().getName() + ":" + Thread.interrupted());
        System.out.println(Thread.currentThread().getName() + ":" + Thread.interrupted());
    }
}

